package com.lds.sign_sdk.annotation;

import com.lds.sign_sdk.crypto.DefaultCrypto;
import com.lds.sign_sdk.crypto.ICrypto;
import com.lds.sign_sdk.emnu.Algorithm;

import java.lang.annotation.*;

/**
 * @Date 2022/7/29
 * @Time 19:10
 * @Author liudongs
 * @E-mail liudongs@aliyun.com
 * @Version 1.0.0
 * @Description
 **/
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface FieldEncrypt {
    String key() default "";

    Algorithm algorithm() default Algorithm.AES;

    Class<? extends ICrypto> iCrypto() default DefaultCrypto.class;
}
